package scjp.preparation.local;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Currency;
import java.util.Date;
import java.util.Locale;

public class CurrencyDetails {

	/**
	 * @param args
	 */
	public static void main(String []args) {
		Locale locale = Locale.getDefault();
		Currency currencyInstance = Currency.getInstance(locale);
		System.out.println(" The currency code for locale " + locale
		+ " is: " + currencyInstance.getCurrencyCode()
		+ " \n The currency symbol is " + currencyInstance.getSymbol()
		+ " \n The currency name is " + currencyInstance.getDisplayName());
		
		Date today = new Date();
		System.out.println(today);
		DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.FULL,Locale.US);
		System.out.println("Date in locale " + locale + " is: " + dateFormat.format(today));
	}
	

}
